Skip to content

Conversation

ktnielse
Copy link
Member

@ktnielse ktnielse commented Oct 9, 2026

Adds the "Challenges" page (#/utfordringer) with two spin-the-wheel components.

What's included

  • Place wheel filled with all venues, with a type filter (All, Nightclub, Pub, Bar, Wine bar)
  • Challenge wheel with mock challenges, styled identically
  • Wheels styled as ship helms. Segments sit between the spokes, so the pointer always lands on a segment and never on a spoke
  • Result dialog with a close button. The result is kept in a field below the wheel and can reopen the dialog
  • Compass link next to the place result, opening the venue's website
  • Mode toggle to show both wheels, only places or only challenges
  • "Spin both" button. When both wheels are spun together, the results are shown in one combined dialog ("Hvor" / "Hva")
  • Semantic markup, native <dialog>, keyboard-accessible wheel hub, live region for the result and reduced-motion support

Supporting changes

  • New useFetch hook and fetchAllPlaces / fetchChallenges API functions (mock data behind async functions, same pattern as the rest of the app)
  • Added the Nattklubb venue type; two mock venues were retyped to it (Nattergal Bar is now Nattergal Klubb)
  • Added the #/utfordringer route and linked it from the main navigation

Notes

  • Stacked on feat/user-page, so this PR targets that branch until the earlier PRs are merged
  • Mock data only, no real API calls yet

Related to #16

@ktnielse ktnielse requested a review from a team as a code owner October 9, 2026 13:31
Copy link
Member

@alekskjo alekskjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Branchen er nå oppdatert mot gjeldende main. Hjulene, filtreringen og resultatdialogene fungerer som forventet, også når begge hjulene brukes sammen. Mobilvisningen fungerer uten horisontal scrolling, og Prettier, lint og build passerer lokalt. Godkjent ✅

@alekskjo alekskjo merged commit 873016e into main Oct 9, 2026
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants